package com.jyw.system.domain.dto;

import com.jyw.common.utils.bean.BeanUtils;
import com.jyw.system.domain.SysTeam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 沈峻
 * @ClassName TeamEditDto
 * @Description TODO
 * @Date 2023/8/8 11:26
 **/
@ApiModel("小组修改请求实体")
@Data
public class TeamEditDto extends TeamAddDto{

    @ApiModelProperty("小组主键")
    @NotNull(message = "小组主键不能为空")
    private Long id;


    public SysTeam buildSysTeam(){
        SysTeam team = new SysTeam();
        BeanUtils.copyProperties(this,team);
        return team;
    }
}
